﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FI.Core.Logging
{
    /// <summary>
    /// A custom <see cref="Attribute"/> to specify component type.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class| AttributeTargets.Method| AttributeTargets.Interface)]
    public sealed class ComponentTypeAttribute : Attribute
    {
        private string componentType;
        /// <summary>
        /// The component type.
        /// </summary>
        public string ComponentType { get { return componentType; } }
        /// <summary>
        /// The contructor of ComponentTypeAttribute
        /// </summary>
        /// <param name="componentType"></param>
        public ComponentTypeAttribute(string componentType)
        {
            this.componentType = componentType;
        }
    }
}
